package com.ganlinux.pangoo.tools;

import java.util.List;

import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Record;

public class DbUtil {
	public static boolean checkUserEnable(String userid,String tocken) {

		List<Record> users = Db.find("select * from user where id = '"+userid+"' and tocken = '"+tocken +"'");

		if (users != null) {
			if (users.size() == 1) {
				return true;
			}
		}
		return false;
	}

}
